package com.ryskoo.controller.basicdata;

import com.ryskoo.basicdata.area.city.domain.CityPO;
import com.ryskoo.basicdata.area.city.service.ICityService;
import com.ryskoo.framework.core.controller.BasicHandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 地区-市管理
 * @author qyc
 */
@Controller
@RequestMapping("/vendor/basicdata/area/city")
public class CityController extends BasicHandler<CityPO> {

    private static final String TEMPLATE_PATH = "system/basicdata/area/city";

    private static final String MODULE_NAME = "City";

    private ICityService cityService;

    /**
     * 消费者注入
     *
     * @param cityConsumer 消费者基类
     */
    @Autowired
    protected void setService(ICityService cityService) {
        this.cityService = cityService;
        super.setService(cityService);
    }

    public CityController() {
        super(TEMPLATE_PATH, MODULE_NAME);
    }


}
